package ru.fizteh.fivt.JobProcessor;

import ru.fizteh.fivt.JobProcessor.DateTime;
import ru.fizteh.fivt.JobProcessor.TimeOfDay;
import Ice.LocalObjectImpl;
import Ice.Object;

public class ProcessorObjectFactory extends LocalObjectImpl implements Ice.ObjectFactory {

	public Object create(String type) {
      if(type.equals(TimeOfDay.ice_staticId()))
      {
          return new TimeOfDay();
      }

      if(type.equals(DateTime.ice_staticId()))
      {
          return new DateTime();
      }

      if(type.equals(Parameter.ice_staticId()))
      {
          return new Parameter();
      }

      if(type.equals(StringParameter.ice_staticId()))
      {
          return new StringParameter();
      }

      if(type.equals(ByteSeqParameter.ice_staticId()))
      {
          return new ByteSeqParameter();
      }

      assert(false);
      return null;
	}

	public void destroy() {
		// TODO Auto-generated method stub

	}

}
